﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace eStore.User
{
    public partial class UserInfo : MyBasePage
    {
        private const string STR_ESTORE = "eStore";  
        //protected string strUserName = String.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = "User Information";
            //strUserName = Page.User.Identity.Name;
            if (DetailsViewUserInfo.Rows.Count>0)
            {
                DetailsViewUserInfo.Rows[0].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "UserName");
                DetailsViewUserInfo.Rows[1].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "FullName");
                DetailsViewUserInfo.Rows[2].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "BirthYear");
                DetailsViewUserInfo.Rows[3].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "Gender");
                DetailsViewUserInfo.Rows[4].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "Phone");
                DetailsViewUserInfo.Rows[5].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "Province");
                DetailsViewUserInfo.Rows[6].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "NationalName");
                DetailsViewUserInfo.Rows[7].Cells[0].Text = (string)GetGlobalResourceObject(STR_ESTORE, "Address");
            }
           
           // Username
        }
    }
}